package com.be.beadmin.device.dto.output;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.be.beadmin.common.entity.BaseEx;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ContentFontStyle(fontName = "Microsoft YaHei",fontHeightInPoints = 12)
@HeadFontStyle(fontName = "Microsoft YaHei",fontHeightInPoints = 12)
public class ToolInfoExcelEx{
    @ExcelProperty("工具名称")
    private String toolName;
    @ExcelProperty("工具编号")
    private String toolId;
    @ExcelProperty("规格型号")
    private String toolType;
    @ExcelProperty("品牌")
    private String manufacturer;
    @ExcelProperty("计划寿命")
    private Float planedLife;
    @ExcelProperty("使用寿命")
    private Float usedLife;
    @ExcelProperty("剩余寿命")
    private Float remainingLife;
    @ExcelProperty("数量")
    private Float qty;
    @ExcelProperty("工具状态")
    private String toolState;
    @ExcelProperty("领用日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date takeawayDate;
    @ExcelProperty("报废日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date scrappedDate;
    @ExcelProperty("存储位置")
    private String location;
    @ExcelProperty("联系人")
    private String contact;

    @ExcelProperty("部门")
    private String dept;
    @ExcelProperty("工号")
    private String employeeId;
    @ExcelProperty("成本中心")
    private String costcenter;
    @ExcelProperty("设备类别")
    private String category;

//    @ExcelProperty("采购日期")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    private Date contractDate;
//    @ExcelProperty("采购编号")
//    private String contractId;
//    @ExcelProperty("唯一标识")
//    private String identification;
//    @ExcelProperty("联系方式")
//    private String telephone;





}
